<template>
  <div class="supplier-box" v-if="$props.detail.id>0">
    <div class="logo">
      <img :src="$props.detail.logo" alt="">
    </div>
    <div class="right-info">
      <div class="line1">
        <span class="name" v-text="$props.detail.name"></span>
        <span class="is-same-city-send-tag" v-if="$props.detail.isSameCitySend===1">同城配送</span>
        <div class="chat-button"><i class="iconfont icon-kefu"></i> 联系供应商</div>
      </div>
      <div class="line2">
        <div class="item">
          营业状态: <span class="business-status-0" v-text="$props.detail.businessStatus.name"></span>
        </div>
        <div class="item">
          营业时间: <span class="business-status-0" v-text="$props.detail.businessTime.join(',')"></span>
        </div>
      </div>
      <div class="line3">
        店铺位置: <span class="address-detail" v-text="$props.detail.addressDetail"></span>
      </div>
    </div>
    <div class="c"></div>
  </div>
</template>

<script>
export default {
  name: 'SupplierBox',
  props:{
    detail:Object
  }
}
</script>

<style scoped>

</style>
